package loop;

public class LoopWhileFor_2 {
    public static void main ( String [] args){
        int begin = 2 ;
        int end = 100 ;
        int sum = 0;
        /*
        while ( begin <= end) {
            sum += begin ;
            begin += 2 ;
        }*/
        for ( begin = 2 ; begin <= end ; begin += 2 ){
            sum += begin ;
        }
        System.out.println( sum );
    }
}
